package com.gict.antifraudback.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.List;

/**
 * 题目
 */
@TableName(value = "question")
@Data
public class Question  extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 文章id
	 */
	private Integer articleId;

	// 名称
	private String statement;

	// 类别
	private String questionType;//1 单选, 2 多选,3 判断,4 填空

	// 答案
	private String answerIds;

	// 解释
	private String answers;

	/**
	 * 选项
	 */
	@Transient
	@TableField(exist = false)
	private List<String> questionOptions;

	/**
	 * 选中选项数组
	 */
	@Transient
	@TableField(exist = false)
	private List<Integer> correctOptions;

}
